package cloud.shyidong.core;

import cloud.shyidong.core.exception.WeixinException;

import java.util.LinkedHashMap;

/**
 * @Description TODO
 * @Author syd
 * @Date 2023/5/9
 */
public class WeixinResult extends LinkedHashMap<String, String> {
    
    public static WeixinResult success() {
        WeixinResult weixinResult = new WeixinResult();
        weixinResult.put("code", "SUCCESS");
        weixinResult.put("message", "成功");
        return weixinResult;
    }
    
    public static WeixinResult fail(WeixinException weixinException) {
        WeixinResult weixinResult = new WeixinResult();
        weixinResult.put("code", "FAIL");
        weixinResult.put("message", "失败");
        return weixinResult;
    }
    
}
